<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>双飞翼布局</title>
		<style type="text/css">
			* {
				margin: 0;
				padding: 0;
			}
			body {
				min-width: 1000px;
			}
			.header {
				display: flex;
				align-items: center;
				justify-content: center;
				height: 100px;
				background-color: lightcyan;
			}
			.content {
				width: 100%;
				height: 400px;
				margin: 0 auto;
				background-color: lightpink;
			}
			.content .middle {
				width: 100%;
				height: 100%;
				float: left;
			}
			.content .middle .inner {
				height: 100%;
				margin: 0 300px 0 200px;
			}
			.content .left {
				float: left;
				width: 200px;
				height: 100%;
				background-color: lightgoldenrodyellow;
				
				/* 会浮动自身,向上移动一行 这里相当于盒子相对上一个浮动的盒子 */
				margin-left: -100%;
			}			
			.content .right {
				float: left;
				width: 300px;
				height: 100%;
				background-color: lightsalmon;
				
				/* 属性值为自身的宽度,上一行的行尾 */
				margin-left: -300px;
			}
			.footer {
				height: 100px;
				text-align: center;
				background-color: lightgreen;
			}
		</style>
	</head>
	<body>
		<div class="header"><h1>双飞翼布局</h1></div>
		<div class="content">
			<div class="middle">
				<div class="inner">
					中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间中间
				</div>
			</div>
			<div class="left">left</div>
			<div class="right">right</div>
		</div>
		<div class="footer">底部</div>
	</body>
</html>
